package IC.Semantics.types;

/**
 * a super class for void, string, int and boolean types.
 * it implements the subtypeOf method for all of them according to the IC specifications 
 */
public abstract class PrimitiveType extends SemanticType
{
	
	public PrimitiveType(String name) {
		super(name);
	}

	public boolean subtypeOf(SemanticType t) {
		return t.getName() == this.getName();
	}
}
